<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{log_name} : {log_account_no}</title>
<link rel="shortcut icon" href="{dir_image}favicon.ico">
<link rel="stylesheet" type="text/css" href="{dir_css}Global.css" />
<link rel="stylesheet" type="text/css" href="{dir_css}Popup.css" />
<link rel="stylesheet" type="text/css" href="{dir_css}Registrar.css" />

<script type="text/javascript" src="{dir_js}jquery.min.js"></script>
<script type="text/javascript" src="{dir_js}Global.js"></script>
</head>

<body>
<!-- POPUP -->{page_popup}<!-- POPUP END -->
<!-- TOP HEADER -->{page_header}<!-- TOP HEADER END -->
	<div class="main-content">
		<input type="hidden" id="record_saved" value="{record_saved}"/>
		<table width="0" border="0" cellspacing="0" cellpadding="0">
			<tr valign="top" align="left">
				<td width="220">
					{reg_sub_menu}
				</td>
				<td width="755">
					<div class="page-sub-content">
						<div class="float-right-back"><a href="?page=Students"><img src="{dir_image}icon/back.png" border="0"/></a></div>	
						<div class="ann-top-label">Students Records</div>
						<table width="0" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td class="reg-student-enroll-td" width="110"><strong>Student #</strong></td>
								<td class="reg-student-enroll-td">:</td>
								<td class="reg-student-enroll-td">{stud_no}</td>
							</tr>
							<tr>
								<td class="reg-student-enroll-td"><strong>Name</strong></td>
								<td class="reg-student-enroll-td">:</td>
								<td class="reg-student-enroll-td">{last_name} {first_name} {middle_name}</td>
							</tr>
							<tr>
								<td class="reg-student-enroll-td"><strong>Department</strong></td>
								<td class="reg-student-enroll-td">:</td>
								<td class="reg-student-enroll-td">{dept_desc}</td>
							</tr>
							<tr>
								<td class="reg-student-enroll-td"><strong>Course</strong></td>
								<td class="reg-student-enroll-td">:</td>
								<td class="reg-student-enroll-td">{course_desc}</td>
							</tr>
							<tr>
								<td colspan="2"></td>
								<td><div class="enrollment-more-details"  onclick="popupRequest('show', 'StudentProfile', 'Student Profile', '390', '500', '{stud_id}');">More Details</div></td>
							</tr>
						</table>
						
						
						<div class="div-reg-transfery">
							<ul class="ul-reg-transfery">
								<li class="li-reg-transfery">Validate Subjects</li>
							</ul>
						</div>
						<div class="div-reg-pointer" id="click_type_reg_transfer">{sem_desc} ({sem_code})</div>
							<div class="enrollment-popup" id="view_enrollment_popup"><!--  display-none -->
								<table width="0" border="0" cellspacing="0" cellpadding="0">
									<tr valign="top">
										<td>
										<!-- BEGIN subjects -->
											{subj_list}
										<!-- END subjects -->
										</td>
									</tr>
								</table>

							</div>
							<input type="button" name="subButton" class="enroll-save-button" value="Save" onclick="activateSubject('{stud_sem_id}')"/>
							<input type="button" name="subButton" class="enroll-save-button" value="Cancel" onclick="linkNewPage('Students')"/>
					</div>
				</td>
			</tr>
		</table>
		
	</div>
<!-- FOOTER -->{page_footer}<!-- FOOTER -->

<script type="text/javascript">
	function activateSubject(stud_sem_id) {
		$.post('request.php', {AJAXPost:'ActivateStudentSemester', stud_sem_id:stud_sem_id}, function(res) {
			linkNewPage('Students');
		});
	}
</script>
</body>
</html>
